// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  ssr: false,
  compatibilityDate: "2024-11-01",
  devtools: { enabled: true },
  modules: ["@unocss/nuxt", "@nuxt/image", "@vueuse/nuxt"],
  runtimeConfig: {
    public: {
      baseUrl: process.env.BASE_URL || "http://localhost:8000", // 设置公共 baseUrl
    },
  },
  routeRules: {
    "/": { redirect: "/movie" }, // 重定向到新页面
  },
  app: {
    head: {
      link: [
        {
          rel: "stylesheet",
          href: "https://unpkg.byted-static.com/xgplayer/3.0.10/dist/index.min.css",
        },
      ],
    },
  },
});
